#include "../../common/utils.hpp"

// 随机数生成
void test1()
{
    //std::string res = myChatSystem::uuid();
    std::string res = myChatSystem::vcode();
    std::cout << res <<"\n";
}


// 文件操作
// 1.写文件
void writeFile()
{
    std::string filename = "testfile";
    std::string body = "文件测试";
    myChatSystem::writeFile(filename,body);
}

// 2.读文件
void readFile()
{
    std::string filename = "testfile";
    std::string body;
    myChatSystem::readFile(filename,body);
    std::cout<<body<<"\n";
}
int main()
{
    //test1();
    writeFile();
    readFile();
    return 0;
}